package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (TView)实体类
 *
 * @author makejava
 * @since 2022-04-21 10:19:16
 */
/**
 * 风景表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_view")
public class View implements Serializable {
    private static final long serialVersionUID = -47541290639946648L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    //景点名
    private String vname;
    //景点图片
    private String imgurl;
    //景点标记
    private String tags;
    //景点简要描述
    private String detail;

    public View(String vname, String imgurl, String tags, String detail) {
        this.vname = vname;
        this.imgurl = imgurl;
        this.tags = tags;
        this.detail = detail;
    }
}

